export default function(router) {
    router.map({
        '/': {
            name: 'index',
            component: function(resolve) {
                require(['../view/App.vue'], resolve)
            }
        },
        '/:id': {
            name: 'detail',
            component: function(resolve) {
                require(['../view/App.vue'], resolve)
            }
        }
    })
}